﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _03_TestIOModule
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                System.Reflection.AssemblyName testAssembly =
                    System.Reflection.AssemblyName.GetAssemblyName(@"E:\File\LabSolutionDevelop\A\IoModule(x64).3.5.0.4088\bin\Shimadzu.LabSolutions.IO.IoModule.dll");

                System.Console.WriteLine("Yes, the file is an assembly.");
            }

            catch (System.IO.FileNotFoundException)
            {
                System.Console.WriteLine("The file cannot be found.");
            }

            catch (System.BadImageFormatException)
            {
                System.Console.WriteLine("The file is not an assembly.");
            }

            catch (System.IO.FileLoadException)
            {
                System.Console.WriteLine("The assembly has already been loaded.");
            }
            Console.ReadKey();
        }
    }
}
